<?php
/**
 * @category   Delcampe
 * @package    Delcampe_Application
 **/
class Delcampe_Application {

	private $_db; 
	
	public function __construct() 
    { 
        $this->_db = Zend_Registry::get('db'); 
    } 
	public function getApplicationId($application_name) {
		$getApplicationId = $this->_db->fetchRow(
         'SELECT id 
		    FROM application 
		   WHERE name = ?'
        ,array($application_name));	
		return $getApplicationId['id'];
	}
	
}